package a66weding.com.jiehuntong.activity.me;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.application.GlobalApplication;
/**
 * 这是订单界面下订单详情界面
 * Created by Administrator on 2016/7/9.
 */
public class MeIndentParticularsActivity extends MeBaseActivity implements View.OnClickListener{
    private LinearLayout mBackLay;
    private TextView mBackContentTv;
    private TextView mHeaderTitleTv;
    private TextView mRightTitleTv;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_me_indent_partivulars);
        ((GlobalApplication)getApplication()).getActivityManager().addActivity("MeIndentParticularsActivity",this);
        initview();
    }
    private void initview() {
        mBackLay = (LinearLayout) findViewById(R.id.lay_head_backlay);
        mBackContentTv = (TextView) findViewById(R.id.headleft_title_tv);
        mHeaderTitleTv = (TextView) findViewById(R.id.headcenter_title_tv);
        mRightTitleTv = (TextView) findViewById(R.id.headright_title_tv);
        mBackContentTv.setText("返回");
        mHeaderTitleTv.setText("订单详情");
        mRightTitleTv.setText("删除");
        mBackLay.setOnClickListener(this);
        mRightTitleTv.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.lay_head_backlay: //点击返回，返回到上一级界面
                finish();
                break;
            case R.id.headright_title_tv: //删除,先打印一个吐司
                Toast.makeText(MeIndentParticularsActivity.this,"删除",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
